import request from '@/utils/request'

/**
 * 出库管理模块信息列表
 * @author 于晨阳
 * @date 2025-4-27
 */

export function findAll(outBound) {
  return request({
    url: '/manage/outbound/findAll',
    method: 'get',
    params: outBound
  })
}

export function deleteOne(outBound) {
  return request({
    url: 'manage/outbound/deleteOne',
    method: 'get',
    params: outBound
  })
}

export function deleteBatch(outBound) {
  return request({
    url: '/manage/outbound/deleteBatch',
    method: 'get',
    params: outBound
  })
}

export function pick(outBound) {
  return request({
    url: '/manage/outbound/pick',
    method: 'get',
    params: outBound
  })
}

export function pickBatch(outBound) {
  return request({
    url: '/manage/outbound/pickBatch',
    method: 'get',
    params: outBound
  })
}

export function confirm(outBound) {
  return request({
    url: '/manage/outbound/confirm',
    method: 'get',
    params: outBound
  })
}

export function confirmBatch(outBound) {
  return request({
    url: '/manage/outbound/confirmBatch',
    method: 'get',
    params: outBound
  })
}

export function searchRelateData(outBound) {
  return request({
    url: '/manage/outbound/searchRelateData',
    method: 'get',
    params: outBound
  })
}

export function saveDialogForm(dialogForm) {
  return request({
    url: '/manage/outbound/saveDialogForm',
    method: 'post',
    data: dialogForm
  })
}

export function detail(outboundId) {
  return request({
    url: '/manage/outbound/detail',
    method: 'get',
    params: { outboundId }
  })
}
